<?php
session_start();
header('Content-Type:text/html;charset=utf-8');
require_once($_SERVER['DOCUMENT_ROOT'].'/public/func.php');
$config=require_once($_SERVER['DOCUMENT_ROOT'].'/public/config.php');
$rec=add($config,'comment');
$_POST['mfile']=up('mfile');
if($rec){
    echo "<script>alert('添加成功');window.location.href='/admin/comment/comment.php'</script>";
}else{
    echo "<script>alert('添加失败');window.location.href='/admin/comment/comment.php'</script>";
}
?>